<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Site_model extends CI_Model {
	
	function getAll() {
		$q = $this->db->get('user');
		
		if($q->num_rows() > 0){
			foreach ($q->result_array() as $row){
				$data[] = $row;
			}
			return $data;
		}
	}
}
?>